import request from '@/util/request'

// city tree
export function tree() {
  return request({
    url: '/api/city/tree',
    method: 'get'
  })
}

// -----------------------------------------------------

// address edit
export function edit(data) {
  return request({
    url: '/api/execute/address/edit',
    method: 'post',
    data
  })
}

// address list
export function list(data) {
  return request({
    url: '/api/execute/address/list',
    method: 'post',
    data
  })
}

// address delete
export function remove(data) {
  return request({
    url: '/api/execute/address/delete',
    method: 'post',
    data
  })
}

// address set default
export function setDefault(data) {
  return request({
    url: '/api/execute/address/set-default',
    method: 'post',
    data
  })
}

// address view
export function view(data) {
  return request({
    url: '/api/execute/address/view',
    method: 'post',
    data
  })
}
